- /* srfrradd.cpp by K.Tsuru */
- // function ID = 810 BRADIX
- /*****************************************************************
- SRational class
- operator m + n
- (x.num/x.den)+(y.num/y.den)=(x.num*y.den+y.num*x.den)/(x.den*y.den)
- ******************************************************************/
-
- #ifndef SN_H
- #include "sn.h"
- #endif
-
- SRational RRAdd(const SRational& x, const SRational& y){
- SRational z; // z.reduceDone = false;
- z.den = x.den * y.den;
- IIAdd(x.num * y.den, y.num * x.den, z.num);
- z.reduce(false);
- return z;
- }
srfrradd.cpp : last modifiled at 2016/06/26 16:26:58(549 bytes)
created at 2016/06/26 15:57:35
The creation time of this html file is 2016/09/18 20:28:04 (Sun Sep 18 20:28:04 2016).